<!DOCTYPE html>
<html>
<head><title>210809010109赵俊</title>
<script language = "javascript">
    document.write("当前文档的标题："+document.title+"<br/>")
    document.write("当前文档的最后修改日期："+document.lastModified+"<br/>")
    document.write("屏幕宽度是："+window.screen.width+"<br/>");
    document.write("屏幕高度是："+window.screen.height+"<br/>");
    document.write("屏幕色深是："+window.screen.colorDepth+"<br/>");
    document.write("屏幕可用宽度是："+window.screen.availWidth+"<br/>");
    document.write("屏幕可用高度是："+window.screen.availHeight+"<br/>");
    today = new Date();
    nowhour = today.getHours();
    nowminute = today.getMinutes();
    nowsecond = today.getSeconds();
    document.write("<h3>"+"现在是"+nowhour+"点"+nowminute+"分"+nowsecond+"秒"+"</h3>")
    if(6<nowhour&&nowhour<12) document.write("早上好:好好学习天天向上")
    else if(12<=nowhour&&nowhour<14) document.write("中午好:好好休息一下吧")
    else if(14<=nowhour&&nowhour<17) document.write("下午好:休息后迎来下一波的工作激情")
    else document.write("晚上好:早点休息，晚安")

function openwindow(){
	window.open("http://www.baidu.com","window")
}
</script>
</head>
<body onload = openwindow()>
  <form>
  <input type = "button" value = "打开新窗口" onclick = window.open("https://www.baidu.com")>
  <br><input type = "button" value = "移动新窗口" onclick = window.moveBy(100,100)>
  <br><input type = "button" value = "关闭窗口" onclick = window.close()>
  </form>
</body>
</html>

